// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期：2024-04-24 15:24:03
// 生成路径: api/v1/business/program_types.go
// 生成人：周志雄
// desc:节目类型相关参数
// company:云南奇讯科技有限公司
// ==========================================================================


package business


import (    
    "github.com/gogf/gf/v2/frame/g"    
    commonApi "github.com/tiger1103/gfast/v3/api/v1/common"    
    "github.com/tiger1103/gfast/v3/internal/app/business/model"
)
// ProgramTypesSearchReq 分页请求参数
type ProgramTypesSearchReq struct {
    g.Meta   `path:"/list" tags:"节目类型" method:"get" summary:"节目类型列表"`    
    Id  string `p:"id"` //主键ID    
    TypeName  string `p:"typeName"` //节目类型名称    
    CreatedAt  string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间    
    commonApi.PageReq
    commonApi.Author
}
// ProgramTypesSearchRes 列表返回结果
type ProgramTypesSearchRes struct {
    g.Meta `mime:"application/json"`
    commonApi.ListRes
    List []*model.ProgramTypesListRes `json:"list"`
}
// ProgramTypesAddReq 添加操作请求参数
type ProgramTypesAddReq struct {
    g.Meta   `path:"/add" tags:"节目类型" method:"post" summary:"节目类型添加"`
    commonApi.Author    
    TypeName  string   `p:"typeName" v:"required#节目类型名称不能为空"`    
}
// ProgramTypesAddRes 添加操作返回结果
type ProgramTypesAddRes  struct {
    commonApi.EmptyRes
}
// ProgramTypesEditReq 修改操作请求参数
type ProgramTypesEditReq struct {
    g.Meta   `path:"/edit" tags:"节目类型" method:"put" summary:"节目类型修改"`
    commonApi.Author
    Id    int  `p:"id" v:"required#主键ID不能为空"`    
    TypeName  string `p:"typeName" v:"required#节目类型名称不能为空"`    
}
// ProgramTypesEditRes 修改操作返回结果
type ProgramTypesEditRes  struct {
    commonApi.EmptyRes
}
// ProgramTypesGetReq 获取一条数据请求
type ProgramTypesGetReq struct {
    g.Meta `path:"/get" tags:"节目类型" method:"get" summary:"获取节目类型信息"`
    commonApi.Author
    Id    int `p:"id" v:"required#主键必须"` //通过主键获取
}
// ProgramTypesGetRes 获取一条数据结果
type ProgramTypesGetRes struct {
    g.Meta `mime:"application/json"`
    *model.ProgramTypesInfoRes
}
// ProgramTypesDeleteReq 删除数据请求
type ProgramTypesDeleteReq struct {
    g.Meta `path:"/delete" tags:"节目类型" method:"delete" summary:"删除节目类型"`
    commonApi.Author
    Ids    []int `p:"ids" v:"required#主键必须"` //通过主键删除
}
// ProgramTypesDeleteRes 删除数据返回
type ProgramTypesDeleteRes struct {
    commonApi.EmptyRes
}
